/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package figuras;

/**
 *+++++++
 * @author rivas
 */
public class Circulo extends Figura{
    
    float radio;
    public Circulo(float x, float y, float radio)
    {
        super(x,y);
        this.radio = radio;
    }

    /**
     * @return the radio
     */
    public float getRadio() {
        return radio;
    }

    /**
     * @param radio the radio to set
     */
    public void setRadio(float radio) {
        this.radio = radio;
    }
    
  
    @Override
    public float area() {
        return (float)(Math.PI*Math.pow(radio,2));
    }
    
}
